package main.java.com.lee.vo;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2022/1/4
 */
public class VolatileVar {
    volatile int var =10;

    public int getVar() {
        return var;
    }

    public void setVar(int var) {
        this.var = var;
    }

    public static void main(String[] args) {
        VolatileVar volatileVar = new VolatileVar();
        volatileVar.setVar(100);
    }
}
